<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>兄弟关系演示</title>
		<script>
			function showP()
			{
				var img=document.getElementById("shangpin1");
				img.parentNode.align="right";
				img.nextElementSibling.innerHTML="dior护手霜！！！";
				img.previousElementSibling.innerHTML="12.12一折销售";
			}
		</script>
	</head>
	<body>
		<div id="tuijian" style="border:2px solid royalblue;">
			<h1>今日特价</h1>
			<img src="../day6/icon-1.jpg" id="shangpin1"/>
			<span>日本代购护手霜</span>
		 
		</div>
		<input type="button" value="显示推荐商品" onclick="showP()"/>
	</body>
</html>
